home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
source
/
piemnsrc.sit
/
Pie Popups.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-09-14
|
557b
|
30 lines
/*
* Pie Popups.c: This is a test program used to test the pie popup
* code as a non-XCMD so that we can use LSC's debugger.
*/
main()
{
Point windowLoc;
char buffer[80];
int num_items;
MaxApplZone();
InitGraf(&thePort);
InitFonts();
FlushEvents(everyEvent, 0);
InitWindows();
InitMenus();
TEInit();
InitDialogs(0L);
InitCursor();
strcpy(buffer,"<BITEM 1;^1ITEM 2;!2ITEM 3;/BITEM 4;(ITEM 5");
num_items = ParseMenuList(buffer);
windowLoc.h = 0;
windowLoc.v = 0;
DrawPieMenu(windowLoc,buffer,num_items,0,(int) geneva,9);
}